﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IInject.Extensibility;

namespace IInject.Tests.Mocks
{
    public class MockExtension : ContainerExtension
    {
	    public MockExtension(IContainer container) : base(container)
	    {
		}

		public bool ItemRegisteringFired { get; private set; }

		public bool ItemRegisteredFired { get; private set; }

		public bool ItemResolvingFired { get; private set; }

	    public override void ItemRegistering(Registration.RegistryContext context)
		{
			ItemRegisteringFired = true;
		}

		public override void ItemRegistered(Registration.RegistryContext context)
		{
			ItemRegisteredFired = true;
		}

		public override void ItemResolving(Resolution.TypeDependency dependency)
		{
			ItemResolvingFired = true;
		}
	}
}
